package com.kazu.general.service.impl;

import com.kazu.general.entity.dao.GeneralAvatar;
import com.kazu.general.mapper.GeneralAvatarMapper;
import com.kazu.general.service.GeneralAvatarService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 默认头像，用于留言时选择默认头像 服务实现类
 * </p>
 *
 * @author kazu
 * @since 2023/02/19 10:20
 */
@Service
public class GeneralAvatarServiceImpl extends ServiceImpl<GeneralAvatarMapper, GeneralAvatar> implements GeneralAvatarService {
	
	@Autowired
	private GeneralAvatarMapper generalAvatarMapper;
	
	/**
	 * 查询所有数据非分页
	 *
	 * @return 所有数据
	 */
	@Override
	public List<GeneralAvatar> getAll() {
		return generalAvatarMapper.selectList(null);
	}
}
